import db from '../libs/database';
import Sequelize from 'sequelize';

const SearchTest = db.define('searchTest', {
    searchId: {
        type: Sequelize.STRING
    },
    sex: {
        type: Sequelize.STRING
    },
    age: {
        type: Sequelize.INTEGER
    },
    name: {
        type: Sequelize.STRING
    },
    icon: {
        type: Sequelize.STRING
    },
    department: {
        type: Sequelize.STRING
    },
    tag: {
        type: Sequelize.STRING
    }
}, {
    freezeTableName: true // Model 对应的表名将与model名相同
});

SearchTest.sync()
// Orders.sync({force: true})

export default SearchTest
